<?php
require_once(dirname(__FILE__)."../../users/config.php");
require_once("kill.php");
session_start();
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$AdultNum = isset($AdultNum) && is_numeric($AdultNum) ? $AdultNum : 0;


if(!defined('wwwew023com'))
{
ShowMsg("引入文件错误",'-1');
exit();
	
}

if($aid=='0')
{
ShowMsg("参数错误,线路不存在",'-1');
exit();
	
}

if($AdultNum =='0' or $thisTime=="")
{
ShowMsg("预定人数错误",'-1');
exit();
	
}
$rok=explode('~',$thisTime);

$now=time();

$yesnoww=strtotime(''.$rok[0].'');


if($yesnoww<$now)
{
ShowMsg("您预定时间 {$rok[0]} 已经过期，请返回重选",'-1');
exit();
	
}

//echo $thisTime; 日期和价格
//echo $AdultNum; 成人数
//echo $KidNum; 儿童数
//echo $aid;   线路ID 




	


$myname  = $cfg_ml->M_name;
$mymb  =  $cfg_ml->M_LoginID;
$mytel  =  $cfg_ml->M_tell;
$mymail  =  $cfg_ml->M_mail;


//$sql = "select * from #@__hotel where aid='$aid'";
//$dsql->SetQuery($sql);
//$dsql->Execute();
//$row = $dsql->GetArray();

$dyq=$dsql->getone("select dyq from #@__line where aid='$aid'");
$_SESSION['188yuding']='gogo';
$dpl = new DedeTemplate();
$tpl =$cfg_basedir.$cfg_templets_dir.'/default/188_order.htm';
$dpl->LoadTemplate($tpl);
$dpl->display();
?>